public class Test {
    public static void main(String[] args) {
        myStack stack = new myStack();
        stack.push("东方");
        stack.push("本田");
        stack.push("丰田");
        stack.push("红旗");
        while(stack.hashNext()){
            System.out.println(stack.pop());
        }
    }

}
